﻿<GroupBox x:Class="BOL.Apps.GeneNetworkBrowser.Controls.RelationTypeFilter"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:converters="clr-namespace:BOL.Apps.GeneNetworkBrowser.Converters"
             Header="Database" Padding="2">
    <GroupBox.Resources>
        <converters:CheckAllConverter x:Key="CheckAllConverter" x:Shared="False"/>
    </GroupBox.Resources>
    <StackPanel>
        <TextBlock>Select All</TextBlock>
        <CheckBox Padding="5 0 15 0" Name="_cbDatabaseAll" Content="All">
            <CheckBox.IsChecked>
                <MultiBinding Converter="{StaticResource CheckAllConverter}">
                    <Binding ElementName="_cbDatabaseGXPCC" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseGXPCC" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseGXMI" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseGXMI" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseLitNLP" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseLitNLP" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseLitNCBI" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseLitNCBI" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseLitComentioned" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseLitComentioned" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabasePPIHPRD" Path="IsChecked" />
                    <Binding ElementName="_cbDatabasePPIHPRD" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabasePPIIntAct" Path="IsChecked" />
                    <Binding ElementName="_cbDatabasePPIIntAct" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabasePPIMIPS" Path="IsChecked" />
                    <Binding ElementName="_cbDatabasePPIMIPS" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabasePPIMINT" Path="IsChecked" />
                    <Binding ElementName="_cbDatabasePPIMINT" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabasePPIDIP" Path="IsChecked" />
                    <Binding ElementName="_cbDatabasePPIDIP" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabasePPIREACTOME" Path="IsChecked" />
                    <Binding ElementName="_cbDatabasePPIREACTOME" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabasePPIKEGG" Path="IsChecked" />
                    <Binding ElementName="_cbDatabasePPIKEGG" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseTFPANTHER" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseTFPANTHER" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseTFJASPAR" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseTFJASPAR" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseTFKEGG" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseTFKEGG" Path="IsEnabled" Mode="OneWay"/>
                    <Binding ElementName="_cbDatabaseTFPAP" Path="IsChecked" />
                    <Binding ElementName="_cbDatabaseTFPAP" Path="IsEnabled" Mode="OneWay"/>
                </MultiBinding>
            </CheckBox.IsChecked>
        </CheckBox>
        <TextBlock>Gene expression</TextBlock>
        <WrapPanel>
            <CheckBox Padding="5 0 15 0" Name="_cbDatabaseGXAll" Content="All">
                <CheckBox.IsChecked>
                    <MultiBinding Converter="{StaticResource CheckAllConverter}">
                        <Binding ElementName="_cbDatabaseGXPCC" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseGXPCC" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabaseGXMI" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseGXMI" Path="IsEnabled" Mode="OneWay"/>
                    </MultiBinding>
                </CheckBox.IsChecked>
            </CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseGXPCC">Pearson correlation coefficient</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseGXMI">Mutual information</CheckBox>
        </WrapPanel>
        <TextBlock>Literature</TextBlock>
        <WrapPanel>
            <CheckBox Padding="5 0 15 0" Name="_cbDatabaseLitAll" Content="All">
                <CheckBox.IsChecked>
                    <MultiBinding Converter="{StaticResource CheckAllConverter}">
                        <Binding ElementName="_cbDatabaseLitNLP" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseLitNLP" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabaseLitNCBI" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseLitNCBI" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabaseLitComentioned" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseLitComentioned" Path="IsEnabled" Mode="OneWay"/>
                    </MultiBinding>
                </CheckBox.IsChecked>
            </CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseLitNLP">Natural language processing</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseLitNCBI">NCBI curated</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseLitComentioned">eUtil commentioned</CheckBox>
        </WrapPanel>
        <TextBlock>Protein-protein interaction</TextBlock>
        <WrapPanel>
            <CheckBox Padding="5 0 15 0" Name="_cbDatabasePPIAll" Content="All">
                <CheckBox.IsChecked>
                    <MultiBinding Converter="{StaticResource CheckAllConverter}">
                        <Binding ElementName="_cbDatabasePPIHPRD" Path="IsChecked" />
                        <Binding ElementName="_cbDatabasePPIHPRD" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabasePPIIntAct" Path="IsChecked" />
                        <Binding ElementName="_cbDatabasePPIIntAct" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabasePPIMIPS" Path="IsChecked" />
                        <Binding ElementName="_cbDatabasePPIMIPS" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabasePPIMINT" Path="IsChecked" />
                        <Binding ElementName="_cbDatabasePPIMINT" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabasePPIDIP" Path="IsChecked" />
                        <Binding ElementName="_cbDatabasePPIDIP" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabasePPIREACTOME" Path="IsChecked" />
                        <Binding ElementName="_cbDatabasePPIREACTOME" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabasePPIKEGG" Path="IsChecked" />
                        <Binding ElementName="_cbDatabasePPIKEGG" Path="IsEnabled" Mode="OneWay"/>
                    </MultiBinding>
                </CheckBox.IsChecked>
            </CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabasePPIHPRD">HPRD</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabasePPIIntAct">IntAct</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabasePPIMIPS">MIPS</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabasePPIMINT">MINT</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabasePPIDIP">DIP</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabasePPIREACTOME">REACTOME</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabasePPIKEGG">KEGG</CheckBox>
        </WrapPanel>
        <TextBlock>Transcription factor - target gene</TextBlock>
        <WrapPanel>
            <CheckBox Padding="5 0 15 0" Name="_cbDatabaseTFAll" Content="All">
                <CheckBox.IsChecked>
                    <MultiBinding Converter="{StaticResource CheckAllConverter}">
                        <Binding ElementName="_cbDatabaseTFPANTHER" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseTFPANTHER" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabaseTFJASPAR" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseTFJASPAR" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabaseTFKEGG" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseTFKEGG" Path="IsEnabled" Mode="OneWay"/>
                        <Binding ElementName="_cbDatabaseTFPAP" Path="IsChecked" />
                        <Binding ElementName="_cbDatabaseTFPAP" Path="IsEnabled" Mode="OneWay"/>
                    </MultiBinding>
                </CheckBox.IsChecked>
            </CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseTFPANTHER">Panther</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseTFJASPAR">JASPAR</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseTFKEGG">KEGG</CheckBox>
            <CheckBox Padding="5 0 15 0" IsChecked="True" Name="_cbDatabaseTFPAP">PAP</CheckBox>
        </WrapPanel>
    </StackPanel>
</GroupBox>
